package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectCbpjMapper;
import com.ruoyi.gcgl.domain.GcProjectCbpj;
import com.ruoyi.gcgl.service.IGcProjectCbpjService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目成本预估Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-27
 */
@Service
public class GcProjectCbpjServiceImpl implements IGcProjectCbpjService 
{
    @Autowired
    private GcProjectCbpjMapper gcProjectCbpjMapper;

    /**
     * 查询项目成本预估
     * 
     * @param id 项目成本预估主键
     * @return 项目成本预估
     */
    @Override
    public GcProjectCbpj selectGcProjectCbpjById(Long id)
    {
        return gcProjectCbpjMapper.selectGcProjectCbpjById(id);
    }

    /**
     * 查询项目成本预估列表
     * 
     * @param gcProjectCbpj 项目成本预估
     * @return 项目成本预估
     */
    @Override
    public List<GcProjectCbpj> selectGcProjectCbpjList(GcProjectCbpj gcProjectCbpj)
    {
        return gcProjectCbpjMapper.selectGcProjectCbpjList(gcProjectCbpj);
    }

    /**
     * 新增项目成本预估
     * 
     * @param gcProjectCbpj 项目成本预估
     * @return 结果
     */
    @Override
    public int insertGcProjectCbpj(GcProjectCbpj gcProjectCbpj)
    {
        return gcProjectCbpjMapper.insertGcProjectCbpj(gcProjectCbpj);
    }

    /**
     * 修改项目成本预估
     * 
     * @param gcProjectCbpj 项目成本预估
     * @return 结果
     */
    @Override
    public int updateGcProjectCbpj(GcProjectCbpj gcProjectCbpj)
    {
        return gcProjectCbpjMapper.updateGcProjectCbpj(gcProjectCbpj);
    }

    /**
     * 批量删除项目成本预估
     * 
     * @param ids 需要删除的项目成本预估主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectCbpjByIds(String ids)
    {
        return gcProjectCbpjMapper.deleteGcProjectCbpjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目成本预估信息
     * 
     * @param id 项目成本预估主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectCbpjById(Long id)
    {
        return gcProjectCbpjMapper.deleteGcProjectCbpjById(id);
    }
}
